theme: Fix spinner for inactive state.
authorBenjamin Otte <otte@redhat.com>
Sat, 5 Mar 2011 14:01:19 +0000 (15:01 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 5 Mar 2011 14:03:56 +0000 (15:03 +0100)
Previously, the inactive state caused the spinner's solid line to be
drawn to the right. Now it's drawn to the top instead, which makes the
inactive state look more natural.

gtk/gtkthemingengine.c

index b6a0795abf1724fb0e476584bf9a0506cd29daf1..717d530732d6852fc8e3adefd68a16f02883f39b 100644 (file)
@@ -3004,8 +3004,8 @@ gtk_theming_engine_render_activity (GtkThemingEngine *engine,
 
           /* transparency is a function of time and intial value */
           gdouble t = 1.0 - (gdouble) ((i + step) % num_steps) / num_steps;
-          gdouble xscale = cos (i * G_PI / half);
-          gdouble yscale = - sin (i * G_PI / half);
+          gdouble xscale = - sin (i * G_PI / half);
+          gdouble yscale = - cos (i * G_PI / half);
 
           cairo_set_source_rgba (cr,
                                  color->red,